<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ page import="java.util.Date" %>
 <%@ page import="java.text.SimpleDateFormat" %>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <link href="css/hh.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
 
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

	

<style>
.zwp{
margin: 0 auto;
width: 500px;

}
*{
	margin:0;
	padding:0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    
}
body{
    font-family: Helvetica;
    -webkit-font-smoothing: antialiased;
    background: rgba( 238, 190, 236);
    
}


/* Table Styles */

.table-wrapper{
    margin: 10px 70px 70px;
    box-shadow: 0px 35px 50px rgba( 0, 0, 0, 0.2 );
}

.fl-table {
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
    border: none;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    background-color: white;
}

.fl-table td, .fl-table th {
    text-align: center;
    padding: 8px;
}

.fl-table td {
    border-right: 1px solid #f8f8f8;
    font-size: 12px;
}

.fl-table thead th {
    color: #ffffff;
    background: #c06497;
}


.fl-table thead th:nth-child(odd) {
    color: #ffffff;
    background: #e188c5;
}

.fl-table tr:nth-child(even) {
    background: #F8F8F8;
}

/* Responsive */

@media (max-width: 767px) {
    .fl-table {
        display: block;
        width: 100%;
    }
    .table-wrapper:before{
        content: "Scroll horizontally >";
        display: block;
        text-align: right;
        font-size: 11px;
        color: white;
        padding: 0 0 10px;
    }
    .fl-table thead, .fl-table tbody, .fl-table thead th {
        display: block;
    }
    .fl-table thead th:last-child{
        border-bottom: none;
    }
    .fl-table thead {
        float: left;
    }
    .fl-table tbody {
        width: auto;
        position: relative;
        overflow-x: auto;
    }
    .fl-table td, .fl-table th {
        padding: 20px .625em .625em .625em;
        height: 60px;
        vertical-align: middle;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        width: 120px;
        font-size: 13px;
        text-overflow: ellipsis;
    }
    .fl-table thead th {
        text-align: left;
        border-bottom: 1px solid #f7f7f9;
    }
    .fl-table tbody tr {
        display: table-cell;
    }
    .fl-table tbody tr:nth-child(odd) {
        background: none;
    }
    .fl-table tr:nth-child(even) {
        background: transparent;
    }
    .fl-table tr td:nth-child(odd) {
        background: #F8F8F8;
        border-right: 1px solid #E6E4E4;
    }
    .fl-table tr td:nth-child(even) {
        border-right: 1px solid #E6E4E4;
    }
    .fl-table tbody td {
        display: block;
        text-align: center;
    }
    
}
#tianjia{
text-decoration: none;
color: #ffffff;
}
#tianjia1{
text-decoration: none;
color: #000000;
background-color: pink;
margin-left: 15px;
padding: 5px;
}
#shousuo{
margin: 0 auto;
width: 280px;
}
#shousuo2 { 
padding: 1px;
 border: 1px solid rgba(29, 161, 107, 0.48);
  	background-color: rgba(255, 255, 255, 0.64);
}
</style>

</head>
<body>
<div class=zwp>
<div id="shousuo">
<form action="SeachByName" method="get" class="shousuo">
<input type="text" name="stuname" autocomplete="off" class="shousuo1">
<input type="submit" value="搜索" id="shousuo2">
</div>
</form>
<form action="MutilSeach" method="get">
		性别：<select name="sex">
			<option value="">请选择</option>
			<option value="男">男</option>
			<option value="女">女</option>
		</select> 
		班级：<select name="class">
			<option value="">请选择</option>
			<c:forEach items="${checkClassInfo}" var="ci">
				<option value="${ci.classId}">${ci.className}</option>
			</c:forEach>
		</select> 
		地址：<select name="address">
			<option value="">请选择</option>
			<c:forEach items="${checkAddressCheck}" var="ca">
				<option value="${ca}">${ca}</option>
			</c:forEach>
		</select> <input type="submit" value="确定">
	</form>
</div>

	

	<div class="table-wrapper" >

	<table class="fl-table">
		<thead>
			<tr>
				<th>编号</th>
				<th>id</th>
				<th>姓名</th>
				<th>性别</th>
				<th>地址</th>
				<th>操作
					<a href="insert.jsp" id="tianjia">添加</a>
				</th>
			</tr>

		</thead>

		<tbody>
			<c:forEach var="st" items="${STUDENTS }" varStatus="vs">
				<tr>
					<th>${vs.count}</th>
					<th>${st.SId }</th>
					<th>${st.SName}</th>
					<th>${st.SSex }</th>
					<th>${st.SAddress }</th>
					<th><a href="DeleteStudents?id=${st.SId }"id="tianjia1">删除</a>
					<a href="CheckStudentById?id=${st.SId }"id="tianjia1">修改</a>
					</th>

				</tr>


			</c:forEach>
		</tbody>
		</table>
	
	<div id="pageDiv">
	<c:forEach var="i" begin="${BEG}" end="${PAGE}" varStatus="v">
	
	<a href="CheckAllStudents?currentPage=${i}" id="lj">
	<c:if test="${i==sessionScope.CP}">
		<c:out value="<font size='17'>" escapeXml="false"></c:out>
	</c:if>
	      [<c:out value="${i}"></c:out>]
	   <c:if test="${i==sessionScope.CP}">
		<c:out value="</font>" escapeXml="false"></c:out>
	</c:if>
	      
	      
	 </a>&nbsp;&nbsp;&nbsp;&nbsp;
	</c:forEach>
	
</div>
</div>
</body>
<script src='js/jquery.min.js'></script>
<script src="js/seach.js"></script>
<script type="text/javascript">

</script>
</html>